//  Java interface 是能继承其它的 interface

interface Animal {
    "id": string
}

interface Cat extends Animal {
    "hobbies": string[]
}

interface Dog extends Animal {
    "legs": number
}

let garfield: Cat = {
    id: "1001",
    hobbies: ["牛肉饼"]
}

console.log(garfield)


